package com.example

object HelloWorld {
	
  
  // receive invoke and 
  //return one character either invoked element or non-element as char
  // non_element_process("RE","FQT")
  def non_element_process( i1: Char, i2: Char, ne: String) :Char = 
  {
      // invoke
		//val inv :Seq[Char] = i
	  //non-element
		  val nonel :Seq[Char] = ne
		if( (i1==nonel(0)) && (i2==nonel(1)) )
		      {
			  	nonel(2)
		      }
		else if( (i2==nonel(1)) && (i1==nonel(0)) )
		      {
			  	nonel(2)
		      }
		else
		{
				i1
		}
		   
  }
  
  
	def main(args: Array[String])
	{
	 	println(non_element_process('F','Q',"FQT"))	
	 }
}
